const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  permission: state => state.user.permission,
  routers:state=>state.permission.routers,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  showBtn: state =>()=>btn=>state.user.permission.points.indexOf(btn)!=-1
}
export default getters
